-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SCORM: S3 cleaning #43
base: hawthorn
Are you sure you want to change the base?
Conversation
scormxblock/scormxblock.py
Outdated
@@ -283,6 +330,8 @@ def studio_upload_files(self, request, suffix=''): | |||
cover_images = request._request.FILES.getlist('cover_images[]') | |||
|
|||
if pkg: | |||
self.discard_scorm_package() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Deleting
scorm packages
( 👉AWS S3
orDisk file system
) before uploading a new one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
? I'll remove this to the end of uploading method.
scormxblock/scormxblock.py
Outdated
def release_all_external_resources(self): | ||
"""Called when course/chapter/subsection/unit got removed. | ||
""" | ||
self.discard_scorm_package(remove_scorm_pkg_root=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- When removing a
Chapter
orSection
... , we also remove packages from S3 or DFS.
@noahzaozao Moved |
Task
Related PR
Tested
OSFS
in devstackTested in
AWS S3